/*package com.davydov.suabl.view;
import java.awt.BorderLayout;
import java.awt.Canvas;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.WindowConstants;
import com.davydov.suabl.model.PhysicsEngine;
import com.davydov.suabl.controller.PhysicsControl;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*//*
public class GameView extends javax.swing.JFrame {
	
	private ArrayList<Integer> keysPressed = new ArrayList<Integer>();
	
	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	private JMenuBar jMenuBar;
	private JMenuItem jGameScore;
	private JMenuItem jHelpManual;
	private JMenuItem jHelpAbout;
	private JMenuItem jGameExit;
	private JSeparator jGameSeparator;
	private JMenuItem jNewGame;
	private JMenu jHelpMenu;
	private JMenu jGameMenu;
	private Canvas gameCanvas;
	private JPanel gamePanel;

	/**
	* Auto-generated main method to display this JFrame
	*//*
	public static void main(String[] args) {
		GameView inst = new GameView();
		inst.setVisible(true);
		inst.setResizable(false);
	}
	
	public GameView() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.addKeyListener(new KeyAdapter() {
				public void keyPressed(KeyEvent evt) {
					thisKeyPressed(evt);
				}
			});
			{
				gamePanel = new JPanel();
				getContentPane().add(gamePanel, BorderLayout.CENTER);
				{
					gameCanvas = new Canvas();
					gamePanel.add(gameCanvas);
				}
			}
			{
				jMenuBar = new JMenuBar();
				setJMenuBar(jMenuBar);
				jMenuBar.setPreferredSize(new java.awt.Dimension(792, 20));
				{
					jGameMenu = new JMenu();
					jMenuBar.add(jGameMenu);
					jGameMenu.setText("Game");
					{
						jNewGame = new JMenuItem();
						jGameMenu.add(jNewGame);
						jNewGame.setText("New Game");
						jNewGame.addMouseListener(new MouseAdapter() {
							public void mousePressed(MouseEvent evt) {
								jNewGameMousePressed(evt);
							}
						});
					}
					{
						jGameScore = new JMenuItem();
						jGameMenu.add(jGameScore);
						jGameScore.setText("View Scores");
						jGameScore.addMouseListener(new MouseAdapter() {
							public void mousePressed(MouseEvent evt) {
								jGameScoreMousePressed(evt);
							}
						});
					}
					{
						jGameSeparator = new JSeparator();
						jGameMenu.add(jGameSeparator);
					}
					{
						jGameExit = new JMenuItem();
						jGameMenu.add(jGameExit);
						jGameExit.setText("Exit");
						jGameExit.addMouseListener(new MouseAdapter() {
							public void mousePressed(MouseEvent evt) {
								jGameExitMousePressed(evt);
							}
						});
					}
				}
				{
					jHelpMenu = new JMenu();
					jMenuBar.add(jHelpMenu);
					jHelpMenu.setText("Help");
					{
						jHelpAbout = new JMenuItem();
						jHelpMenu.add(jHelpAbout);
						jHelpAbout.setText("About");
						jHelpAbout.addMouseListener(new MouseAdapter() {
							public void mousePressed(MouseEvent evt) {
								jHelpAboutMousePressed(evt);
							}
						});
					}
					{
						jHelpManual = new JMenuItem();
						jHelpMenu.add(jHelpManual);
						jHelpManual.setText("Manual");
						jHelpManual.addMouseListener(new MouseAdapter() {
							public void mousePressed(MouseEvent evt) {
								jHelpManualMousePressed(evt);
							}
						});
					}
				}
			}
			pack();
			this.setSize(800, 600);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private void jNewGameMousePressed(MouseEvent evt) {
		startGame();
	}
	
	private void jGameScoreMousePressed(MouseEvent evt) {
		System.out.println("jGameScore.mousePressed, event=" + evt);
		//TODO add your code for jGameScore.mousePressed
	}
	
	private void jGameExitMousePressed(MouseEvent evt) {
		System.exit(0);
	}
	
	private void jHelpAboutMousePressed(MouseEvent evt) {
		System.out.println("jHelpAbout.mousePressed, event=" + evt);
		//TODO add your code for jHelpAbout.mousePressed
	}
	
	private void jHelpManualMousePressed(MouseEvent evt) {
		System.out.println("jHelpManual.mousePressed, event=" + evt);
		//TODO add your code for jHelpManual.mousePressed
	}

	private void startGame() {
		PhysicsControl engine = new PhysicsEngine();
		// System.out.println("new game started");
		
		// Load level
		// tick every 50 miliseconds until game ends
	}
	
	private void thisKeyPressed(KeyEvent evt) {
		keysPressed.add(evt.getKeyCode());
		System.out.println(evt.getKeyCode());
	}
}*/
